<template>
	<view class="u-padding-30"> 
	  <view class="u-font-weight u-font-30">{{info.issue}}</view>
	  
	  <view class="u-type-info u-margin-top-20">{{info.answer}}</view>
	  
	  
	  <view>
		  <view class="" style="margin: 40rpx 0;">
			  <u-button shape="circle" type="primary" @click="ok">
				  
				  <u-icon name="thumb-up-fill"></u-icon>
				  <text class="u-margin-left-10"> 已解决</text></u-button>
		  </view>
	  		 <u-button  shape="circle" type="error" @click="go('/pages/help/feedback?id='+id)">
				 
				 <u-icon name="thumb-down-fill"></u-icon>
				 <text class="u-margin-left-10">未解决</text></u-button >
	  </view>
	  
	  <u-toast ref="uToast" />
	 
	</view>
</template>

<script>
	export default{
		data(){
			return{
				info:'',
				id:""
			}
		},
		onLoad(options) {
			if(options.id){
				this.id=options.id
			}
			this.name()
		},
		methods: {
			go(e){
				uni.navigateTo({
					url:e
				})
			},
			name() {
				this.$u.post('/index/faqdetail', {
					id:this.id
				}).then(res => {
					this.info = res;
					
				}).catch(err => {
							
				})
			},
			ok(){
				
				this.$refs.uToast.show({
					title: '已解决',
					type: 'success',
					back :true
				})
			}
			
			
		},
	}
</script>

<style>
</style>
